class CreateWorkItems < ActiveRecord::Migration
  def self.up
    create_table :work_items do |t|
      t.integer :work_item_type_id,
        :stage_id
      t.string :name
      t.decimal :pay_unit,
        :precision => 8,
        :scale => 2
      t.text :remark
      t.timestamps
    end
  end

  def self.down
    drop_table :work_items
  end
end
